package org.advanced.reflection;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author John.zhang
 * @version Id: SpringIoc, v 1.0 2020/12/3 20:47 ZhiYong Exp $
 */
public class SpringIoc {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("spring-ioc.xml");
        User bean = (User) classPathXmlApplicationContext.getBean("User");

    }

}
